<template>
  <div class="jilupian">
    <div class="conter1">
      <div class="title">
        <p>纪录片</p>
        <div>
          <p>更多 <span class="iconfont icon-youjiantou"></span></p>
        </div>
      </div>
      <div class="jbody">
        <div class="onebody">
          <img
            src="../../../../assets/img/body/jilupian/jillupian0.jpg"
            alt=""
          />
        </div>
        <div class="towbody">
          <ul>
            <li v-for="(item, index) in jilupian" :key="index">
              <img :src="item.img" alt="" />
              <p>{{ item.p }}</p>
            </li>
          </ul>
        </div>
      </div>
    </div>
    <div class="conter2">
      <div class="title">
        <h3>排行</h3>
        <p>全部</p>
      </div>
      <div class="pbody">
        <div class="pitem" v-for="(item, index) in paihang" :key="index">
          <p class="p1">
            {{ item.p1 }} <span>{{ item.num }}</span>
          </p>
          <p class="p2">{{ item.p2 }}</p>
        </div>
        <div class="chakan">查看更多</div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      jilupian: [
        {
          img: require("../../../../assets/img/body/jilupian/jillupian1.png"),
          p: "一顿海鲜吃出人名",
        },
        {
          img: require("../../../../assets/img/body/jilupian/jillupian2.jpg"),
          p: "瞬间破防！年轻消防员冒死救人，在家等他的爷爷去世了…",
        },
        {
          img: require("../../../../assets/img/body/jilupian/jillupian3.jpg"),
          p: "自从老爹红了以后，早餐的档次都提高了",
        },
        {
          img: require("../../../../assets/img/body/jilupian/jillupian4.jpg"),
          p: "日本传奇女酿酒师，百年酒厂第一位女性首席！",
        },
        {
          img: require("../../../../assets/img/body/jilupian/jillupian5.png"),
          p: "出门吃个简易早餐，经济又实惠，干净又卫生！",
        },
        {
          img: require("../../../../assets/img/body/jilupian/jillupian6.jpg"),
          p: "13岁初中生创业3次，结果……",
        },
      ],
      paihang: [
        {
          p1: "不破不立",
          num: "1",
          p2: "即将开播",
        },
        {
          p1: "紫禁城",
          num: "2",
          p2: "更新第八集",
        },
        {
          p1: "第一餐",
          num: "3",
          p2: "全八集",
        },
        {
          p1: "求偶游戏",
          num: "4",
          p2: "全六集",
        },
        {
          p1: "小城夜食记",
          num: "5",
          p2: "更新至第十六夜",
        },
        {
          p1: "名人谋杀案",
          num: "6",
          p2: "更新至EP3",
        },
        {
          p1: "我的大白褂2·王牌科室",
          num: "7",
          p2: "全十集",
        },
      ],
    };
  },
};
</script>
<style lang="scss" scoped>
.jilupian {
  width: 100%;
  height: 364px;
  // background-color: pink;
  display: flex;
  .conter1 {
    width: 900px;
    // background-color: lime;
    .title {
      width: 100%;
      height: 36px;
      // background-color: yellow;
      font-size: 24px;
      display: flex;
      justify-content: space-between;
      div {
        margin-right: 20px;
        margin-top: 10px;
        text-align: center;
        p {
          font-size: 12px;
          border: 1px solid #ccd0d7;
          padding: 4px 6px;
          // background-color: wheat;
          border-radius: 5px;
          span {
            transition: all 1s;
            font-size: 10px;
            color: #999;
          }
        }
        p:hover {
          background-color: #ccd0d7;
          cursor: pointer;
        }
        p:hover > span {
          padding-left: 4px;
        }
      }
    }
    .jbody {
      width: 100%;
      height: 320px;
      margin-top: 8px;
      // background-color: wheat;
      display: flex;
      .onebody {
        width: 340px;
        background-color: yellow;
        img {
          width: 100%;
          height: 100%;
          border-radius: 5px;
        }
      }
      .towbody {
        width: 560px;
        // background-color: aquamarine;
        ul {
          width: 100%;
          height: 100%;
          li {
            float: left;
            margin-left: 20px;
            width: 160px;
            height: 150px;
            // background-color: lime;
            font-size: 12px;
            img {
              width: 100%;
              height: 100px;
              border-radius: 5px;
            }
            p {
              margin: 4px 0px;
              height: 44px;
              width: 100%;
              overflow: hidden;
              -o-text-overflow: ellipsis;
              text-overflow: ellipsis;
              display: -webkit-box;
              -webkit-line-clamp: 2;
              -webkit-box-orient: vertical;
              white-space: normal;
            }
            span {
              color: #99a2aa;
            }
          }
          li:nth-child(1),
          li:nth-child(2),
          li:nth-child(3) {
            margin-bottom: 20px;
          }
          li:hover > p {
            cursor: pointer;
            color: #00a1d6;
          }
        }
      }
    }
  }
  .conter2 {
    width: 260px;
    // background-color: antiquewhite;
    .title {
      width: 100%;
      height: 36px;
      // background-color: orange;
      display: flex;
      align-items: center;
      h3 {
        font-size: 18px;
        font-weight: normal;
      }
      p {
        margin-left: 20px;
        font-size: 12px;
        padding: 4px 0px;
        color: #00a1d6;
        position: relative;
        overflow: hidden;
        border-bottom: 1px solid #00a1d6;
        // background-color: orangered;
      }
      p::before {
        position: absolute;
        bottom: -2px;
        left: 50%;
        margin-left: -2px;
        content: "";
        width: 4px;
        height: 4px;
        background-color: #00a1d6;
        transform: rotate(45deg);
      }
    }
    .pbody {
      width: 100%;
      display: flex;
      flex-direction: column;
      row-gap: 20px;
      margin-top: 8px;
      .pitem {
        height: 18px;
        // background-color: peru;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
        .p1 {
          margin-left: 28px;
          position: relative;
          span {
            position: absolute;
            top: 0px;
            left: -28px;
            color: white;
            background-color: #b8c0cc;
            border-radius: 5px;
            padding: 1px 6px;
          }
        }
        .p2 {
          color: #99a2aa;
        }
      }
      .pitem:hover > .p1 {
        color: #00a1d6;
        cursor: pointer;
      }
      .pitem:nth-child(1) > .p1 > span,
      .pitem:nth-child(2) > .p1 > span,
      .pitem:nth-child(3) > .p1 > span {
        background-color: #00a1d6;
      }
      .chakan {
        width: 100%;
        margin-top: 10px;
        background-color: #e5e9ef;
        height: 26px;
        text-align: center;
        line-height: 26px;
        font-size: 12px;
        border-radius: 5px;
        box-shadow: 0px 0px 6px #e5e9ef;
      }
      .chakan:hover {
        background-color: #ccd0d7;
      }
    }
  }
}
</style>